package com.github.pig.training.entity;

import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.annotations.Version;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;

/**
 * <p>
 * 考试记录
 * </p>
 *
 * @author andrew
 * @since 2018-06-23
 */
@TableName("training_examination")
public class TrainingExamination extends Model<TrainingExamination> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "fid", type = IdType.AUTO)
    private Integer fid;
    /**
     * 校区
     */
    @TableField("school_id")
    private String schoolId;
    /**
     * 考试科目
     */
    @TableField("subject_id")
    private String subjectId;
    /**
     * 预约时间
     */
    @TableField("appointment_time")
    private Date appointmentTime;
    /**
     * 考场
     */
    @TableField("examination_room")
    private String examinationRoom;
    /**
     * 状态
     */
    @TableField("biz_status")
    private String bizStatus;
    /**
     * 是否通过
     */
    @TableField("is_pass")
    private Integer isPass;
    /**
     * 成绩
     */
    @TableField("report_card")
    private Integer reportCard;
    /**
     * 备注
     */
    private String remark;
    /**
     * 创建时间
     */
    @TableField("create_time")
    private Date createTime;
    /**
     * 创建人
     */
    @TableField("create_user")
    private Integer createUser;
    /**
     * 最后修改时间
     */
    @TableField("last_update_time")
    private Date lastUpdateTime;
    /**
     * 最后修改人
     */
    @TableField("last_update_user")
    private Integer lastUpdateUser;
    /**
     * 来源
     */
    private String resource;
    /**
     * 版本
     */
    @Version
    private Integer version;
    /**
     * 删除标识
     */
    @TableField("del_flag")
    private String delFlag;
    /**
     * 修改时间
     */
    @TableField("update_time")
    private Date updateTime;
    /**
     * 学员
     */
    @TableField("student_id")
    private Integer studentId;


    public Integer getFid() {
        return fid;
    }

    public void setFid(Integer fid) {
        this.fid = fid;
    }

    public String getSchoolId() {
        return schoolId;
    }

    public void setSchoolId(String schoolId) {
        this.schoolId = schoolId;
    }

    public String getSubjectId() {
        return subjectId;
    }

    public void setSubjectId(String subjectId) {
        this.subjectId = subjectId;
    }

    public Date getAppointmentTime() {
        return appointmentTime;
    }

    public void setAppointmentTime(Date appointmentTime) {
        this.appointmentTime = appointmentTime;
    }

    public String getExaminationRoom() {
        return examinationRoom;
    }

    public void setExaminationRoom(String examinationRoom) {
        this.examinationRoom = examinationRoom;
    }

    public String getBizStatus() {
        return bizStatus;
    }

    public void setBizStatus(String bizStatus) {
        this.bizStatus = bizStatus;
    }

    public Integer getIsPass() {
        return isPass;
    }

    public void setIsPass(Integer isPass) {
        this.isPass = isPass;
    }

    public Integer getReportCard() {
        return reportCard;
    }

    public void setReportCard(Integer reportCard) {
        this.reportCard = reportCard;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Integer getCreateUser() {
        return createUser;
    }

    public void setCreateUser(Integer createUser) {
        this.createUser = createUser;
    }

    public Date getLastUpdateTime() {
        return lastUpdateTime;
    }

    public void setLastUpdateTime(Date lastUpdateTime) {
        this.lastUpdateTime = lastUpdateTime;
    }

    public Integer getLastUpdateUser() {
        return lastUpdateUser;
    }

    public void setLastUpdateUser(Integer lastUpdateUser) {
        this.lastUpdateUser = lastUpdateUser;
    }

    public String getResource() {
        return resource;
    }

    public void setResource(String resource) {
        this.resource = resource;
    }

    public Integer getVersion() {
        return version;
    }

    public void setVersion(Integer version) {
        this.version = version;
    }

    public String getDelFlag() {
        return delFlag;
    }

    public void setDelFlag(String delFlag) {
        this.delFlag = delFlag;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public Integer getStudentId() {
        return studentId;
    }

    public void setStudentId(Integer studentId) {
        this.studentId = studentId;
    }

    @Override
    protected Serializable pkVal() {
        return this.fid;
    }

    @Override
    public String toString() {
        return "TrainingExamination{" +
        ", fid=" + fid +
        ", schoolId=" + schoolId +
        ", subjectId=" + subjectId +
        ", appointmentTime=" + appointmentTime +
        ", examinationRoom=" + examinationRoom +
        ", bizStatus=" + bizStatus +
        ", isPass=" + isPass +
        ", reportCard=" + reportCard +
        ", remark=" + remark +
        ", createTime=" + createTime +
        ", createUser=" + createUser +
        ", lastUpdateTime=" + lastUpdateTime +
        ", lastUpdateUser=" + lastUpdateUser +
        ", resource=" + resource +
        ", version=" + version +
        ", delFlag=" + delFlag +
        ", updateTime=" + updateTime +
        ", studentId=" + studentId +
        "}";
    }
}
